package com.bsb.biz.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bsb.base.mapper.BsbPolicyQaMapper;
import com.bsb.base.model.BsbPolicyQa;
import com.bsb.base.model.BsbPolicyQaExample;

@Service
public class BsbPolicyQaService{
	
	@Resource
	private BsbPolicyQaMapper bsbPolicyQaMapper;
	
	public void addBsbPolicyQa(BsbPolicyQa bsbPolicyQa) {
		bsbPolicyQaMapper.insertSelective(bsbPolicyQa);
	}
	
	public void delBsbPolicyQaByUuid(String uuid) {
		bsbPolicyQaMapper.deleteByPrimaryKey(uuid);
	}
	
	public void updateBsbPolicyQa(BsbPolicyQa bsbPolicyQa) {
		bsbPolicyQaMapper.updateByPrimaryKeySelective(bsbPolicyQa);
	}
	
	public void updateBsbPolicyQaByExample(BsbPolicyQa bsbPolicyQa,BsbPolicyQaExample bsbPolicyQaExample){
	    bsbPolicyQaMapper.updateByExampleSelective(bsbPolicyQa,bsbPolicyQaExample);
	}
	
	public BsbPolicyQa getBsbPolicyQaByUuid(String uuid) {
		return bsbPolicyQaMapper.selectByPrimaryKey(uuid);
	}
	
	public List<BsbPolicyQa> getPageBsbPolicyQa(BsbPolicyQaExample bsbPolicyQaExample) {
		return bsbPolicyQaMapper.selectPage(bsbPolicyQaExample);
	}
	
	public int countBsbPolicyQa(BsbPolicyQaExample bsbPolicyQaExample) {
		return bsbPolicyQaMapper.countByExample(bsbPolicyQaExample);
	}
	
	public List<BsbPolicyQa> selectByExample(BsbPolicyQaExample example){
	    return bsbPolicyQaMapper.selectByExample(example);
	}
}
